home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / picks / HTTrack / httrack-3.22-3.exe / {app} / src / swf / swf2html_cls.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-05  |  1020 b   |  45 lines

  1. /*
  2.   Flash (SWF) interface to httrack
  3.   Using the library provided by Macromedia(tm)
  4.   from http://www.macromedia.com/software/flash/download/search_engine/index.html
  5.   See swf2html_license.txt for more information on the license
  6. */
  7.  
  8. /*
  9.  
  10.   swf2html_cls.h
  11.   
  12. */
  13.  
  14. #ifndef __SWF2HTML_STDIO_H
  15. #define __SWF2HTML_STDIO_H
  16.  
  17. typedef int (* htsmodAddLink)(void* handle, char* link);
  18.  
  19. #include "swf2html.h"
  20.  
  21. class Swf2HtmlConverterCallback : public Swf2HtmlConverter
  22. {
  23. public:
  24.   Swf2HtmlConverterCallback();
  25.   
  26.   bool ConvertSwf2Html(void* buffer, int size,
  27.     void* handle, htsmodAddLink callbackLink);
  28.   
  29. protected:
  30.   virtual void PutByte(swf_U8 ch);
  31.   virtual void PutString(const char *str);
  32.   virtual void PutLink(const char *str);
  33.   virtual swf_S32 ReadInput(void *buffer, swf_S32 count);
  34.   virtual void DisplayError(const char *str);
  35.   
  36. private:
  37.   htsmodAddLink m_callbackLink;
  38.   char* m_buffer;
  39.   int m_size;
  40.   int m_offs;
  41.   void* m_handle;
  42. };
  43.  
  44. #endif /* __SWF2HTML_STDIO_H */
  45.